<?php
# Not a valid entry point, skip unless MEDIAWIKI is defined
if (!defined('MEDIAWIKI')) {
        echo <<<EOT
To install my extension, put the following line in LocalSettings.php:
require_once( "$IP/extensions/Send2Wiki/Send2Wiki.php" );
EOT;
        exit( 1 );
}

$wgAutoloadClasses['Send2Wiki'] = dirname(__FILE__) . '/Send2Wiki.body.php';
$wgSpecialPages['Send2Wiki'] = 'Send2Wiki';
//$wgHooks['LoadAllMessages'][] = 'Send2Wiki::loadMessages';

$wgExtensionFunctions[] = 'send2wikisetup';

function send2wikisetup() {
  global $wgMessageCache;
  $wgMessageCache->addMessage('send2wiki', 'Send2Wiki');
}

$wgExtensionCredits['specialpage'][] = array(
   'name' => 'Send2Wiki',
   'author' => 'The Center for Open Sustainable Learning (http://cosl.usu.edu/)',
   'description' => 'Use Send2Wiki to remix web pages.'
);

?>